﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home.Master" AutoEventWireup="true" CodeBehind="PropertyCategory.aspx.cs" Inherits="RealtorsPortal.PropertyCategory" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
<title>Property category</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphWrapper" runat="server">
<div class="full_box">
        <div class="left_title">
            <img src="images/bg_left_title.png" />
        </div>
        <!--End #left_featured -->
        <div class="full_container">
            <div class="title">
                <span>Category:<asp:Label ID="lblCategoryName" runat="server" Text="" Width="100px"></asp:Label></span>
            </div>
            <asp:ListView ID="lvwCateAds" runat="server">
            
                <ItemTemplate>
                    <div class="property_box">
                        <div class="property_image">
                            <a href='Detail.aspx?AdvId=<%#Eval("AdvId") %>'>
                                <img src="<%#Eval("ImageUrl") %>" title='<%#Eval("Title") %>' alt='<%#Eval("Title") %>' /></a>
                        </div>
                        <!--End .property_image -->
                        <div class="property_information">
                            <div class="property_title">
                                <a href='Detail.aspx?AdvId=<%#Eval("AdvId") %>' title='<%#Eval("Title") %>'><%#Eval("CategoryName") %>: <%#Eval("Title") %></a>
                            </div>
                            <!--End .property_title -->
                            <div class="property_address">
                                Add: <%#Eval("Address") %>,
                                            <%#Eval("DistrictName") %>,
                                            <%#Eval("CityName") %>
                            </div>
                            <!--End .property_address -->
                            <div class="property_price">
                                Price: <%#Eval("Price") %> $
                            </div>
                            <!--End .property_price -->
                        </div>
                        <!--End .property_information -->
                    </div>
                    <!--End .property_box -->
                </ItemTemplate>
                </asp:ListView>
            <div class="lv_pager">
                <asp:DataPager ID="DataPager1" QueryStringField="adspage" PageSize="6" PagedControlID="lvwCateAds"
                    runat="server">
                    <Fields>
                        <asp:NumericPagerField ButtonType="Link" />
                        <asp:NextPreviousPagerField ButtonType="Button" RenderNonBreakingSpacesBetweenControls="true"
                            FirstPageText="First" LastPageText="Last" NextPageText="Next" PreviousPageText="Back"
                            ShowFirstPageButton="true" ShowLastPageButton="true" ShowNextPageButton="true"
                            ShowPreviousPageButton="true" />
                    </Fields>
                </asp:DataPager>
            </div>
        </div>
    </div>
</asp:Content>
